3.264 \(\int \frac {\cos ^3(x)}{a-a \sin ^2(x)} \, dx\)

Optimal. Leaf size=6 \[ \frac {\sin (x)}{a} \]

[Out]

sin(x)/a

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 6, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3175, 2637} \[ \frac {\sin (x)}{a} \]

Antiderivative was successfully verified.

[In]

Int[Cos[x]^3/(a - a*Sin[x]^2),x]

[Out]

Sin[x]/a

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3175

Int[(u_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Dist[a^p, Int[ActivateTrig[u*cos[e + f*x
]^(2*p)], x], x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a + b, 0] && IntegerQ[p]

Rubi steps

\begin {align*} \int \frac {\cos ^3(x)}{a-a \sin ^2(x)} \, dx &=\frac {\int \cos (x) \, dx}{a}\\ &=\frac {\sin (x)}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 6, normalized size = 1.00 \[ \frac {\sin (x)}{a} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[x]^3/(a - a*Sin[x]^2),x]

[Out]

Sin[x]/a

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 6, normalized size = 1.00 \[ \frac {\sin \relax (x)}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^3/(a-a*sin(x)^2),x, algorithm="fricas")

[Out]

sin(x)/a

________________________________________________________________________________________

giac [A]  time = 0.12, size = 6, normalized size = 1.00 \[ \frac {\sin \relax (x)}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^3/(a-a*sin(x)^2),x, algorithm="giac")

[Out]

sin(x)/a

________________________________________________________________________________________

maple [A]  time = 0.13, size = 7, normalized size = 1.17 \[ \frac {\sin \relax (x )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)^3/(a-a*sin(x)^2),x)

[Out]

sin(x)/a

________________________________________________________________________________________

maxima [A]  time = 0.33, size = 6, normalized size = 1.00 \[ \frac {\sin \relax (x)}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^3/(a-a*sin(x)^2),x, algorithm="maxima")

[Out]

sin(x)/a

________________________________________________________________________________________

mupad [B]  time = 13.76, size = 6, normalized size = 1.00 \[ \frac {\sin \relax (x)}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)^3/(a - a*sin(x)^2),x)

[Out]

sin(x)/a

________________________________________________________________________________________

sympy [B]  time = 2.86, size = 15, normalized size = 2.50 \[ \frac {2 \tan {\left (\frac {x}{2} \right )}}{a \tan ^{2}{\left (\frac {x}{2} \right )} + a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)**3/(a-a*sin(x)**2),x)

[Out]

2*tan(x/2)/(a*tan(x/2)**2 + a)

________________________________________________________________________________________